package com.zt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zt.pojo.Bookings;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预约信息Mapper接口
 */
@Mapper
public interface BookingsMapper extends BaseMapper<Bookings> {
    
    /**
     * 获取用户的所有预约
     * @param userId 用户ID
     * @return 预约列表
     */
    List<Bookings> getUserBookings(@Param("userId") Integer userId);
} 